package org.edu.modules.oa.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.edu.modules.oa.entity.VeOaLaneMailEntity;
import org.edu.modules.oa.vo.VeOaMailExportVo;

import java.util.List;

/**邮件表业务
 * 2021/5/11
 *
 * @author hwj
 */
public interface IVeOaLaneMailService extends IService<VeOaLaneMailEntity>{
    /**
     * 发送邮件
     * @param mailEntity 邮件类
     * @return 1成功0失败
     */
    int sendMail(VeOaLaneMailEntity mailEntity);

    List<VeOaMailExportVo> selectAllByIsDeletedAndToUserAndEmailState(@Param("veOaLaneMailEntity") VeOaLaneMailEntity veOaLaneMailEntity);

}
